package com.zyj.myapplication.Service;

import com.zyj.myapplication.Javabean.ActivityInfo;
import com.zyj.myapplication.Javabean.AskList;
import com.zyj.myapplication.Javabean.Coach;
import com.zyj.myapplication.Javabean.CoachInfo;
import com.zyj.myapplication.Javabean.VideoList;

import java.util.List;

import retrofit2.Call;
import retrofit2.http.GET;
import retrofit2.http.POST;
import retrofit2.http.Path;
import retrofit2.http.Query;

/**
 * Created by Administrator on 2017/10/23.
 */

public interface CoachService {
    //获取大师列表
    @GET("lists/mod/master")
    Call<List<Coach>> getCoachList();
    //获取大师详细信息
    @GET("get/mod/{mod}/SessionID/{SessionID}/id/{id}")
    Call<CoachInfo>getCoachinfo(
            @Path("SessionID") String SessionID,
            @Path("mod") String mod,
            @Path("id") String id
    );
    /* 问大师列表
            * http://172.24.10.175/workout/api.php/lists/mod/masterfaq/master_id/2
            * */
    @POST("lists/mod/masterfaq/")
    Call<List<AskList>> getAskList(@Query("master_id") String master_id);

    /**
     * 大师视频列表
     * http://172.24.10.175/workout/api.php/get/mod/master/related/1/id/1/map/mvideo
     * */
    @POST("get/mod/master/related/1/")
    Call<VideoList> getVideoList(@Query("id") String id, @Query("map") String mvideo
    );
    //获取大师的收藏状态
    @GET("isExits/mod/fans/fan_id/{fan_id}/userid/{userid}/fans_type/{fans_type}/SessionID/{SessionID}")
    Call<Integer> getClubState(
            @Path("fan_id") String fan_id,
            @Path("userid") int userid,
            @Path("fans_type") String fans_type,
            @Path("SessionID") String SessionID
    );

    //关注大师
    @GET("focus/SessionID/{SessionID}/userid/{userid}/fan_id/{fan_id}/fans_type/{fans_type}")
    Call<Integer> changeClubState(
            @Path("SessionID") String SessionID,
            @Path("userid") int userid,
            @Path("fan_id") String fan_id,
            @Path("fans_type") String fans_type
    );


}
